package cn.fdaxy.shop.api.weixin.service;

import cn.fdaxy.shop.common.base.BaseResponse;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName VerificaCodeService
 * @Description TODO
 * @Author liaofd
 * @Date 2019/7/24 15:25
 * @Version 1.0
 */
@Api(tags = "微信注册码验证码接口")
public interface VerificaCodeService {
    /**
     * 根据手机号码验证码token是否正确
     * @param phone
     * @param weixinCode
     * @return
     */
    @ApiOperation(value = "根据手机号码验证码token是否正确")
    @PostMapping("/verificaWeixinCode")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "phone", dataType = "String", required = true, value = "用户手机号码"),
            @ApiImplicitParam(paramType = "query", name = "weixinCode", dataType = "String", required = true, value = "微信注册码") })
    BaseResponse<JSONObject> verificaWeixinCode(@RequestParam("phone") String phone,
                                                @RequestParam("weixinCode") String weixinCode);
}
